package com.jcfk.system.controller;

import com.jcfk.common.web.domain.RetResult;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.ArrayList;
import java.util.List;

/**
 * 系统日期信息
 */
@Api(value = "/dateInfo", tags = {"系统日期信息"})
@RestController
@RequestMapping("/dateInfo")
public class SystemDateInfoController {

    /**
     * 获取年度列表
     * @return
     */
    @ApiOperation(value = "获取年度列表", notes = "获取年度列表", httpMethod = "POST")
    @PostMapping("/getYearList")
    public RetResult<List<String>> getYearList(){
        List<String> years=new ArrayList<>();

        years.add("2024");
        years.add("2025");
        years.add("2026");
        years.add("2027");
        years.add("2028");
        years.add("2029");
        years.add("2030");

        return RetResult.ok(years);
    }
}
